import Vue from 'vue'
import VueRouter from 'vue-router'

/** 默认路由配置和说明：
 * // this generates a separate chunk (about.[hash].js) for this route
 * // which is lazy-loaded when the route is visited.
 * // component: () => import('../views/About.vue')
 */
const Login = () => import(/* webpackChunkName: "about" */ '../views/Login')

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: Login
  }
]

const router = new VueRouter({
  routes
})

export default router
